package com.ziyun.pop.modules.order.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ziyun.pop.modules.order.dao.PopOrderLogDao;
import com.ziyun.pop.modules.order.entity.OrderLogEntity;
import com.ziyun.pop.modules.order.service.OrderLogService;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;
import org.springframework.stereotype.Service;

import java.util.Map;


@Service("orderLogService")
public class OrderLogServiceImpl extends ServiceImpl<PopOrderLogDao, OrderLogEntity> implements OrderLogService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        Page<OrderLogEntity> page = (Page<OrderLogEntity>) this.page(
                new Query<OrderLogEntity>(params).getPage(),
                new QueryWrapper<OrderLogEntity>()
        );
        return new PageUtils(page);
    }

}
